When an AppIcon actor is destroyed we try to unset a non-existent draggable
property.
Fix the typo, doing this even if we're not currently in a drag operation.
https://gitlab.gnome.org/GNOME/gnome-shell/merge_requests/677
}
if (this._stateChangedId > 0)
this.app.disconnect(this._stateChangedId);
- if (this._draggable && this._dragging) {
- Main.overview.endItemDrag(this);
- this.draggable = null;
+ if (this._draggable) {
+ if (this._dragging)
+ Main.overview.endItemDrag(this);
+ this._draggable = null;
}
this._stateChangedId = 0;
this._removeMenuTimeout();